package cn.hongwei.eduservice.service.impl;

import cn.hongwei.eduservice.entity.Chapter;
import cn.hongwei.eduservice.mapper.ChapterMapper;
import cn.hongwei.eduservice.service.ChapterService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Great
 * @email 1224028994@qq.com
 */
@Service
public class ChapterServiceImpl extends ServiceImpl<ChapterMapper,Chapter> implements ChapterService {
    //获取章节和对应的视频
    @Override
    public List<Chapter> getChaptersAndVideos(String courseId) {
        //        QueryWrapper wrapper = new QueryWrapper();
//        wrapper.eq("course_id" , courseId)
        return baseMapper.getChaptersAndVideos(courseId);
    }
}
